*Figure 4

use "\\ead02\ead_uquam\Localization\NAICS6_panel\cdf_rhs", clear


//average IO linkages n5
preserve 
collapse (mean)  export_tot import_tot l_idist_n3 l_odist_n3 l_idist_n5 l_odist_n5 av_klems l_idist_n7 l_odist_n7 l_idist_n10 l_odist_n10 l_idist_n3i l_odist_n3i l_idist_n5i l_odist_n5i l_idist_n7i l_odist_n7i l_idist_n10i l_odist_n10i, by(year)
twoway (line l_idist_n5i l_odist_n5i year, lcolor(black))
graph save "Z:\Localization\results\graph\graph_IO_linkages_year", replace
restore
